package com.banmoon.mediator;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class House {

    private int floor;

    private int distance;

    private boolean balcony;

    private int rent;

    public void showInfo(){
        System.out.println(StrUtil.format("租房信息【{}楼，距离地铁{}米，{}阳台，租金仅要{}元】",
                floor, distance, balcony? "有": "没有", rent));
    }

}
